<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd" >
<html>
<sj:head locale="es" jqueryui="true" jquerytheme="cupertino" />
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link rel="stylesheet" type="text/css" href="estilo/style.css" />
    <script language="JavaScript" type="text/javascript">	
	  function mostrarSite(cod_site){ 
	    	var con="\?";
			var idx=con+"cod_site="+cod_site;
			var lnk="<s:url value='lstsitesurvey.action"+idx+"' />";
			//var ele=document.getElementById('btn_aprobar_'+cod_site);
			
		    window.open(lnk,'','width=700,height=600,left=0,top=0,resizable=yes,menubar=no,location=no,status=yes,scrollbars=yes');
	   } 
   </script>	
</head>

<body>
<div id='resultado_gd_aprxss' >
   
     
<table width="100%">
<tr Height='10px' >
			<td width='10%' class='tabla_th1' >Codigo</td>
			<td width='35%' class='tabla_th1' >Prospecto</td>
			<td width='15%' class='tabla_th1' >Vendedor</td>
		    <td width='20%' class='tabla_th1' >Observaciones</td>
		    <td width='10%' class='tabla_th1' >Fecha</td>
		    <td width='10%' class='tabla_th1' >Hora</td>
		    <td width='10%' class='tabla_th1' >Ver</td>
		    <td width='15%' class='tabla_th1' colspan="2" >Accion</td>
</tr>
 <s:iterator var="outer2" status="i_status" value="lst_sitesurveys" >
        <s:set name="n_ctd"><s:property value="#outer2.id" /></s:set>
        <s:set name="n_cod"><s:property value="#outer2.codigo" /></s:set>
	 
	    <s:if test="#i_status.even"><tr Height='10px' class='filaint_1' ></s:if><s:else><tr Height='10px' class='filaint_2' ></s:else>
	   	   <td width='10%' >
	   	       <s:property value="#outer2.codigo" />
	   	   </td>
		   <td width='35%' >
			   <s:property value="#outer2.prospecto" />  
		   </td>
		    <td width='20%' >	
			  <s:property value="#outer2.vendedor" />
		   </td>
		   <td width='15%' >
		      <s:property value="#outer2.sucursal" />
		   </td>
		  
		   <td width='10%' >
		      <s:property value="#outer2.fecha" />
		   </td>
		    <td width='10%' >
		       <s:property value="#outer2.hora" />
		    </td>
		    <td>
		         <sj:submit cssClass="boton_sia1" value="Ver" onclick="mostrarSite('%{n_cod}')"  button="true"  highlightColor="blue" highlightDuration="2000"    />
		    </td>
		    <td width='15%' >
		      <sj:div id='resultado_stx_ssx%{n_ctd}' >  
			        <s:form action="actualizar_stx_site.action" id="form_guardar_stx_ss%{n_ctd}" theme="simple">
			          <s:hidden name='site.codigo' id='txtcod_sitesx_%{n_ctd}'  value='%{n_cod}' ></s:hidden>
			            <sj:submit id='btn_aprobar_%{n_cod}' cssClass="boton_sia1" targets="resultado_stx_ssx%{n_ctd}" indicator="indicator_aprxss" button="true" value="Aprobar" theme="simple"  disabled='false' />
			            <img id="indicator_aprxss" src="images/ajax-loader3.gif" alt="Cargando..." style="display: none" />
			        </s:form>  
		             <s:form action="actualizar_stx_site_rechazar.action" id="form_rechazar_stx_ss%{n_ctd}" theme="simple">
			              <s:hidden name='site.codigo' id='txtcod_sitesx_%{n_ctd}'  value='%{n_cod}' ></s:hidden>
			              <sj:submit id='btn_rechazar_%{n_cod}'  cssClass="boton_sia1" targets="resultado_stx_ssx%{n_ctd}" indicator="indicator_aprxss_r" button="true" value="Rechazar" theme="simple"   disabled='false'  />
			              <img id="indicator_aprxss_r" src="images/ajax-loader3.gif" alt="Cargando..." style="display: none" />
			         </s:form>  
		        </sj:div>
		    </td>
	   </tr>
</s:iterator>
 </table>
</div>
</body>
</html>
